﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BugTracker.WebUX.WebCode;
using BugTacker.Common;

namespace BugTracker.WebUX.Modules.Shared
{
    public partial class UCWorkspaceMenu : System.Web.UI.UserControl
    {
        //class="current"
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("dashboard.aspx"))
                this.dashboardli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("userprofile.aspx"))
                this.profileli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("projectlist.aspx"))
                this.projectli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("issuelist.aspx"))
                this.issueli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("workloglist.aspx"))
                this.worklogli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("reportedbylist.aspx"))
                this.reportedbyli.Attributes.Add("class", "current");
            else if (CommonRoutines.GetPageName(HttpContext.Current).ToLower().Contains("changepassword.aspx"))
                this.changepwdli.Attributes.Add("class", "current");
        }
    }
}